﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using Chefbook.DataObjects;
using System.Globalization;
using Chefbook.DataAccessLayer;

namespace Chefbook.UserActions
{
    public class SaveRecipeAction : UserActionBase
    {
        private Recipe recipeToSave;

        public SaveRecipeAction(Recipe recipeToSave)
        {
            this.recipeToSave = recipeToSave;
            this.IsUndoable = false;
        }

        public override void DoAction()
        {
            base.DoAction();

        }

        public override void UndoAction()
        {
            base.UndoAction();
        }

        public override string ToString()
        {
            return string.Format(CultureInfo.CurrentUICulture, "Save Recipe '{0}'", recipeToSave);
        }
    }
}
